// @ts-ignore
/* eslint-disable */
import { request } from '@/services/request';

export async function outLogin(body: API.UserParams, options?: { [key: string]: any }) {
  return request('/adminapi/logout', {
    data: body,
    ...(options || {}),
  });
}

export async function getUserinfoByToken() {
  return request('/adminapi/getUserinfoByToken', {
    params: {
      token: localStorage.getItem("userToken"),
      user_id: localStorage.getItem("userId")
    },
  });
}


export async function getNotices() {
  return request('/adminapi/getMyUserMailList', {
    params: {
      token: localStorage.getItem("userToken"),
      user_id: localStorage.getItem("userId")
    },
  });
}
